﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="users_delete" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../css/addbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
   <form id="form1" runat="server">
    <div>
    <center>
        <div class="wrap">
	<div class="top">
    	<div class="top1">
       
           
        </div>
        
     </div>
            
        
    <div class="shortnfo">
         <h2>当前位置：库存管理->图书出库</h2>
     <div class="menuitems">
        
       

           <ul>
                      <li><a id="A1"  href="../master/index.aspx" runat="server">首页</a></li>
                       <li><a id="A2"  href="~/booksave/select.aspx" runat="server">库存查询</a></li>
                      <li><a id="A3"    href="~/booksave/updata.aspx" runat="server">修改库存</a></li>
                      <li><a id="A4"     href="~/booksave/add.aspx" runat="server">新书入库</a></li>
                      <li><a href="../master/save.aspx">退出</a></li>
                  </ul>
         
     </div>
    </div>
            <div class="content">
                 <table border="0" style="table-layout:fixed;width:100%; text-align:left;height:100%" >

                      <tr>
    <td>编号：</td>
    <td>
        <asp:TextBox ID="num" runat="server" Width="126px"></asp:TextBox>
                          </td>
    <td>图书名称：</td>

    <td>
        <asp:TextBox ID="name" runat="server" Width="126px"></asp:TextBox>
         </td>
      <td>
        <asp:Button ID="Button2" runat="server" Text="查找" OnClick="Button1_Click" />
      </td>
  </tr>
  

  <tr>
    <td colspan="5">
        <asp:GridView ID="Gv1" runat="server" AutoGenerateColumns="False" DataKeyNames="编号" OnRowDeleting="GridView1_RowDeleting" AllowPaging="true" PageSize="5" OnPageIndexChanging="GridView1_PageIndexChanging" Height="100%" Width="100%" >
            <Columns>
                <asp:BoundField DataField="编号" HeaderText="编号" ReadOnly="True" SortExpression="编号">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="图书名称"  HeaderText="图书名称" SortExpression="图书名称">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="数量" HeaderText="数量" SortExpression="数量">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="库号" HeaderText="库号" SortExpression="库号">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:BoundField DataField="类别" HeaderText="类别" SortExpression="类别">
                <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Delete" 
                            ImageUrl="~/image_oracle/BtnDelete.gif" 
                            onclientclick="return confirm('确定删除吗？');" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <RowStyle Height="46px" HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:GridView>

        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString8 %>" ProviderName="<%$ ConnectionStrings:ConnectionString8.ProviderName %>" SelectCommand="select * from Book_Stack"></asp:SqlDataSource>

    </td>
  </tr>
     </table>

            </div>
             <div class="footer">
    <p>Copyright ©2019  All Rights Reserved</p> 
     </div>
            </div>
        </center>
    </div>
    </form>
</body>
</html>
